﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using eCommerce.Core.Domain.Products;

namespace eCommerce.Data.Mapping.Products
{
    public class ItemAttributeKeyMapping : EntityTypeConfiguration<ItemAttributeKey>
    {

        public ItemAttributeKeyMapping()
        {
            this.ToTable("ItemAttributeKeys");
            this.HasKey(p => p.Id);
           
           // this.HasRequired(c=>c.Product).WithMany(t=>t.ProductAttributeKeys).HasForeignKey(c=>c.ProductId).WillCascadeOnDelete(false);

        }
    }
}
